# Contributor: Maarten van Gompel <proycon@anaproy.nl>
# Maintainer: Maarten van Gompel <proycon@anaproy.nl>
pkgname=mbtserver
pkgver=0.16
pkgrel=4
pkgdesc="Memory-based Tagger and Tagger Generator (server part)"
arch="all"
url="https://github.com/LanguageMachines/mbtserver"
license="GPL-3.0-only"
makedepends="libtool libxml2-dev ticcutils-dev timbl-dev timblserver-dev mbt-dev icu-dev"
subpackages="$pkgname-dev $pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/LanguageMachines/mbtserver/releases/download/v$pkgver/mbtserver-$pkgver.tar.gz"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--localstatedir=/var
	make
}

check() {
	LD_LIBRARY_PATH="$PWD/src/.libs/" make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
85b4b4d4ada34c6ddef13385e0f2203453f4886e69015d28625896368827c9f1753105f957ec3efc9a4ca9aa421f5677bb9af85dc1d8a96a5bd51062a7994991  mbtserver-0.16.tar.gz
"
